package com.ymatou.iapi.refund.testcase;

import java.util.List;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.optrade.resp.TradingServiceResp;
import com.ymatou.iapi.refund.parameter.CreateReturnBillBean;
import com.ymatou.iapi.refund.parameter.GetBuyerReturnBillsBean;
import com.ymatou.iapi.refund.parameter.GetBuyerReturnBillsResp;
import com.ymatou.iapi.refund.parameter.GetBuyerReturnBillsResp.RefundBillVo;
import com.ymatou.iapi.refund.parameter.RefundProductVo;
import com.ymatou.iapi.refund.service.CreateReturnBillCall;
import com.ymatou.iapi.refund.service.GetBuyerReturnBillsCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.AuthCallServiceV2;
import com.ymttest.business.service.RefundCallService;
import com.ymttest.business.service.YMTTrading.TradingCallService;
import com.ymttest.business.service.YMTTrading.TradingPlaceOrderCallService;
import com.ymttest.database.model.CS_ReturnApplyBill;
import com.ymttest.database.model.CS_ReturnApplyProducts;
import com.ymttest.database.model.Userinfo;
import com.ymttest.database.mongo.UserTokenWapper;
import com.ymttest.database.sharding.db.sharding.model.OrderDetailPo;
import com.ymttest.database.sharding.db.sharding.model.OrderPo;
import com.ymttest.database.sharding.db.sqlwapper.OrderShardingWapper;
import com.ymttest.database.sqlwapper.CS_ReturnApplyBillWapper;
import com.ymttest.database.sqlwapper.CS_ReturnApplyProductsWapper;
import com.ymttest.database.sqlwapper.JUserWapper;
import com.ymttest.utils.EnvSetup;
/**
*获取用户所有退货退款记录
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_GetBuyerReturnBills{
	private static GetBuyerReturnBillsBean bean;
	private static GetBuyerReturnBillsCall call;
	private static CreateReturnBillBean createBean=new CreateReturnBillBean();
	private static CreateReturnBillCall createCall=new CreateReturnBillCall();
	private UserTokenWapper userWapper;
	private static CS_ReturnApplyBillWapper  applyWapper=new CS_ReturnApplyBillWapper();
	private static CS_ReturnApplyProductsWapper returnApplyProducts=new CS_ReturnApplyProductsWapper();
	private TradingServiceResp tradingServiceResp=new TradingServiceResp();
	private OrderShardingWapper orderShardingWapper = new OrderShardingWapper();

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取用户所有退货退款记录");
	}

	@Before
	public void caseUp() throws Exception {
		bean=new GetBuyerReturnBillsBean(); 	
		call=new GetBuyerReturnBillsCall();
		userWapper=new UserTokenWapper();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(call.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_001() {
		Logger.start(true,"正例-用户所有退货退款记录-包含一个商家，一个商品，一个订单");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			bean.setPlatformSource(0);
			call.setData(bean);
			call.callService();			
			
			verifyReturn();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_002() {
		Logger.start(true,"正例-用户所有退货退款记录-包含一个商家，一个商品，一个订单,使用优惠券");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithCoupon();
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			call.setData(bean);
			call.callService();			
			verifyReturn();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_003() {
		Logger.start(true,"正例-用户所有退货退款记录-包含一个商家，多个订单，多个商品,退其中一个商品");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithTwoProcutInOneOrder(false, false);
			createBean=service.setCreateReturnBillMoreBean_AcceptOrder(tradingServiceResp,tradingService);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			call.setData(bean);
			call.callService();			
			verifyReturn();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_005() {
		Logger.start(true,"正例-用户所有退货退款记录-包含未接单，走取消流程");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillMoreBean_AcceptOrder(tradingServiceResp,tradingService);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			call.setData(bean);
			call.callService();			
			verifyReturn();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_006() {
		Logger.start(true,"正例-用户所有退货退款记录-PageIndex=2");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(2);
			bean.setPageSize(3);
			call.setData(bean);
			call.callService();			
			verifyReturn();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_007() {
		Logger.start(false,"反例-用户所有退货退款记录-PageIndex=0");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(0);
			bean.setPageSize(3);
			call.setData(bean);
			call.callService();			
			Logger.verifyEquals(true,call.getMsg1().contains("pageIndex is must"), "验证Msg");
			Logger.verifyEquals("400",call.getStatus(), "验证Status");
			Logger.verifyEquals("12",call.getbCode(), "验证bCode");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_008() {
		Logger.start(false,"反例-用户所有退货退款记录-PageSize=0");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(0);
			call.setData(bean);
			call.callService();			
			Logger.verifyEquals(true,call.getMsg1().contains("pageSize is must"), "验证Msg");
			Logger.verifyEquals("400",call.getStatus(), "验证Status");
			Logger.verifyEquals("12",call.getbCode(), "验证bCode");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	
	@Test
	@Category({P1.class})
	@TestCase
	@Ignore
	public void Tc_GetBuyerReturnBills_009() {
		Logger.start(false,"反例-用户所有退货退款记录-PageSize大于数据库总数");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(999999);
			call.setData(bean);
			call.callService();			
			verifyReturn();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_010() {
		Logger.start(false,"反例-用户所有退货退款记录-PageIndex大于数据库总数");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(999999);
			bean.setPageSize(50);
			bean.setPlatformSource(0);
			call.setData(bean);
			call.callService();	
			
			List<RefundBillVo> refundResp=call.getCallData().getRefundList();
			int tCount=applyWapper.pagingBuyerRefundListCount(createBean.getUserid(),bean.getPlatformSource());
			Logger.verifyEquals(call.getCallData().getTotalCount(),tCount, "验证返回的TotalCount与数据库是否一致");

			Logger.verifyEquals("",call.getMsg1(), "验证Msg");
			Logger.verifyEquals(refundResp.size(),0, "验证ReturnBills 长度");
			Logger.verifyEquals("200",call.getStatus(), "验证Status");
			Logger.verifyEquals("0",call.getbCode(), "验证bCode");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_011() {
		Logger.start(true,"正例-用户所有退货退款记录-该用户包含分销记录和非分销记录，返回分销记录");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			Logger.comment("createBean.getUserid:"+createBean.getUserid());
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			bean.setPlatformSource(1);
			call.setData(bean);
			call.callService();			
			
			verifyReturn();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_011_1() {
		Logger.start(true,"正例-用户所有退货退款记录-该用户不包含分销记录,查询传入PlatformSource=1 分销，返回空");
		try {
//			//创建一个订单
			TradingCallService tradingService=new TradingCallService();
			RefundCallService service=new RefundCallService();
//			tradingServiceResp=tradingService.placeOrder1(false, false);
//			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			Logger.comment("createBean.getUserid:"+createBean.getUserid());
			//AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			AuthCallServiceV2.createToken(88477, "app");
			String token=userWapper.getAccessTokenByUid(88477);
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			bean.setPlatformSource(1);
			call.setData(bean);
			call.callService();			
			
			Logger.verifyEquals("",call.getMsg1(), "验证Msg");
			Logger.verifyEquals("200",call.getStatus(), "验证Status");
			Logger.verifyEquals("0",call.getbCode(), "验证bCode");
			Logger.verifyEquals(call.getCallData().getTotalCount(),0, "验证返回的TotalCount=0");
			Logger.verifyEquals(call.getCallData().getRefundList().size(),0, "验证返回0");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_GetBuyerReturnBills_011_2() {
		Logger.start(true,"正例-用户所有退货退款记录-该用户不包含分销记录,查询传入PlatformSource=1 分销，返回空");
		try {
			//创建一个订单
			TradingPlaceOrderCallService tradingService = new TradingPlaceOrderCallService();
			RefundCallService service = new RefundCallService();
			TradingServiceResp tradingServiceResp = tradingService
					.placeOrderWithLuxury(false);
			createBean=service.setCreateReturnBillBean_AcceptOrder(tradingServiceResp,tradingService,false);
			service.callCreateReturnBill(createBean,createCall);
			
			//根据userId 获取token
			Logger.comment("crea teBean.getUserid:"+createBean.getUserid());
			//查出PlatformSource=1 修改isdel=1
			List<CS_ReturnApplyBill> returnApplyBills=applyWapper.selectByBuyerIdAndFromSource(createBean.getUserid(),1);
			for(CS_ReturnApplyBill model:returnApplyBills)
			{
					model.setIsDel(true);
					applyWapper.updateByPrimaryKey(model);
			}
			
			AuthCallServiceV2.createToken(createBean.getUserid(), "app");
			String token=userWapper.getAccessTokenByUid(createBean.getUserid());
			bean.setAccessToken(token);
			bean.setCallback("");
			bean.setPageIndex(1);
			bean.setPageSize(3);
			bean.setPlatformSource(1);
			call.setData(bean);
			call.callService();			
			
			Logger.verifyEquals("",call.getMsg1(), "验证Msg");
			Logger.verifyEquals("200",call.getStatus(), "验证Status");
			Logger.verifyEquals("0",call.getbCode(), "验证bCode");
			Logger.verifyEquals(call.getCallData().getTotalCount(),0, "验证返回的TotalCount=0");
			Logger.verifyEquals(call.getCallData().getRefundList().size(),0, "验证返回0");

			for(CS_ReturnApplyBill model:returnApplyBills)
			{
				model.setIsDel(false);
				applyWapper.updateByPrimaryKey(model);
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	private void verifyReturn() throws InterruptedException
	{
		Thread.sleep(3000);
		List<CS_ReturnApplyBill> applyLst=applyWapper.pagingBuyerRefundList(createBean.getUserid(),bean.getPageIndex(),bean.getPageSize(),bean.getPlatformSource() );
		
		
		int tCount=applyWapper.pagingBuyerRefundListCount(createBean.getUserid(),bean.getPlatformSource());
		List<RefundBillVo> refundResp=call.getCallData().getRefundList();
		
		
		Logger.verifyEquals(call.getCallData().getTotalCount(),tCount, "验证返回的TotalCount与数据库是否一致");

		Logger.verifyEquals("",call.getMsg1(), "验证Msg");
		Logger.verifyEquals("200",call.getStatus(), "验证Status");
		Logger.verifyEquals("0",call.getbCode(), "验证bCode");
		// ReturnBills
		for(int i=0;i<refundResp.size();i++)
		{
		  //订单表
		  OrderPo orderPo = orderShardingWapper
					.selectOrderbyOrderId(refundResp.get(i).getOrderId());
		  //订单明细
		  List<OrderDetailPo> orderDetailPoList = orderShardingWapper
					.selectOrderDetailbyOrderId(refundResp.get(i).getOrderId());
		  
		  Userinfo userinfo=new JUserWapper().selectUserinfoByLoginid(applyLst.get(i).getAccepterLoginId()); 
		  
		  Logger.verifyEquals(refundResp.get(i).getSellerId(),userinfo.getUserId(), "验证返回第"+(i+1)+"个字段sellerId");
		  Logger.verifyEquals(refundResp.get(i).getOrderId(),(long)applyLst.get(i).getOrderId(), "验证数据库CS_ReturnApplyBill第"+(i+1)+"个字段OrderId是否正确");
		  Logger.verifyEquals(refundResp.get(i).getRefundId(),applyLst.get(i).getReturnApplyBillId(), "验证数据库CS_ReturnApplyBill第"+(i+1)+"个字段ReturnApplyBillId是否正确");
		  Logger.verifyEquals(refundResp.get(i).getRefundAmount().toString(),applyLst.get(i).getReturnAmount().stripTrailingZeros().toPlainString(), "验证数据库CS_ReturnApplyBill第"+(i+1)+"个字段ReturnAmount是否正确");
		  Logger.verifyEquals(refundResp.get(i).getTotalPrice().toString(),orderPo.getTotalPrice().stripTrailingZeros().toPlainString(), "验证数据库CS_ReturnApplyBill第"+(i+1)+"个字段TotalPrice是否正确");
		  Logger.verifyEquals(refundResp.get(i).getStatus(),applyLst.get(i).getAction(), "验证数据库CS_ReturnApplyBill第"+(i+1)+"个字段Action是否正确");
		  Logger.verifyEquals(refundResp.get(i).getShangouOrder(),applyLst.get(i).getShangouOrder(), "验证数据库CS_ReturnApplyBill第"+(i+1)+"个字段ShangouOrder是否正确");
		  //ReturnBills.Products
		  List<com.ymatou.iapi.refund.parameter.GetBuyerReturnBillsResp.RefundProductVo>  rplst=
				  call.getCallData().getRefundList().get(i).getProducts();
		  List<CS_ReturnApplyProducts> plst=returnApplyProducts.selectByApplyBillId(applyLst.get(i).getReturnApplyBillId());
		  
		  Logger.verifyEquals(rplst.size(),plst.size(), "验证返回products的总数据与数据库是否一致");
		
		  for(int k=0;k<rplst.size();k++)
		  {
			//  OrderDetailPo orderItem=tradingServiceResp.getOrderList().get(0).getOrderDetailPoList().get(k);
			  Logger.verifyEquals(rplst.get(k).getProductId(),plst.get(k).getProductId(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段ProductId");
			  Logger.verifyEquals(rplst.get(k).getCatalogId(),plst.get(k).getCatalogId(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段CatalogId");
			  Logger.verifyEquals(rplst.get(k).getPictureUrl(),plst.get(k).getPicUrl(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段PicUrl");
			  Logger.verifyEquals(rplst.get(k).getTitle(),plst.get(k).getProductName(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段ProductName");
			  
			  Logger.verifyEquals(rplst.get(k).getPropertyInfo(),plst.get(k).getCatalogText(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段CatalogText");
			  
			  Logger.verifyEquals(rplst.get(k).getLogisticsType(),orderPo.getLogisticsType(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段LogisticsType");
			  Logger.verifyEquals(rplst.get(k).getPropertyInfo(),plst.get(k).getCatalogText(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段CatalogText");
			  //ProductRefundChannel
			  Logger.verifyEquals(rplst.get(k).getProductRefundChannel(),0, "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段ProductRefundChannel");
			  Logger.verifyEquals(rplst.get(k).getFreight().toString(),plst.get(k).getFreight().stripTrailingZeros().toPlainString(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段Freight");
			  
			  
			  Logger.verifyEquals(rplst.get(k).getTariffAssumeType(),orderDetailPoList.get(k).getTariffType(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段TariffType");
			  //SupportRtnWithoutReason
			  Logger.verifyEquals(rplst.get(k).getSupportRefundWithoutReason(),false, "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段CatalogText");
			  
			  Logger.verifyEquals(rplst.get(k).getPsp(),plst.get(k).getIsPSP(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段IsPSP");
			  Logger.verifyEquals(rplst.get(k).getIsPreSale(),plst.get(k).getIsPreSale(), "验证数据库CS_ReturnApplyProducts第"+(i+1)+"个字段IsPreSale");
		  }
		  
		}
	}
}